package idl

type Contest struct {
	Cid   int64  `json:"cid" mapstructure:"cid,omitempty"`
	Title string `json:"title" binding:"required" mapstructure:"title,omitempty"`
	//Encrypt    int         `json:"encrypt,omitempty"`
	//Argument   interface{} `json:"argument,omitempty"`
	CreateTime int64  `json:"create_time" xorm:"created" mapstructure:"create_time,omitempty"`
	Password   string `json:"password" mapstructure:"password,omitempty"`

	IsVisible bool  `json:"is_visible" mapstructure:"is_visible,omitempty"`
	StartTime int64 `json:"start_time" xorm:"created" mapstructure:"start_time,omitempty"`
	EndTime   int64 `json:"end_time" mapstructure:"end_time,omitempty"`

	Status int `json:"status" mapstructure:"status,omitempty"`
	//ContentPath    string `json:"content_path" `
	AllowedIpRange string `json:"allowed_ip_range" mapstructure:"allowed_ip_range,omitempty"`
}

type ContestDetailInfo struct {
	Cid        int64 `json:"cid" mapstructure:"cid,omitempty"`
	Pid        int64 `json:"pid" mapstructure:"pid,omitempty"`
	ExpireTime int64 `json:"expire_time" mapstructure:"expire_time,omitempty"`
	CreatBy    int64 `json:"creat_by" mapstructure:"creat_by,omitempty"`
}
